package com.ego.service;

import com.ego.spring.*;

/**
 * @author 袁梦达
 */
@Scope("prototype")
@Component("userService")
public class UserService implements BeanNameAware, InitializingBean, IUserService {

    @Autowired
    public OrderService orderService;

    public String beanName;


    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("初始化....");
    }
    public void test(){
        System.out.println(orderService);
    }

}
